package com.example.demo.page.demo

import com.example.demo.base.intent.Action
import com.example.demo.base.model.Effect
import com.example.demo.base.model.State


sealed class DemoAction : Action {
    data class ClickLogin(val name:String,val pwd:String) : DemoAction()
    data object Navigation : DemoAction()
}

sealed class DemoEvent : Effect {
    data class NavigationToHost(val num: Int) : DemoEvent()
}

sealed class DemoState : State {
    data object Loading : DemoState()
    data object Empty : DemoState()
    data object LoginSuccess : DemoState()
    data class Error(val ex: String) : DemoState()
}